<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left" style="width:415px"><h3> <a href="<?= base_url();?>member/myaccount"> My Account </a></h3></span>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/add">Sale Car</a>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/requirement">Post Requirement</a>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
    <div id="inner" style="text-align: justify">
        <div style="width: 300px; float: left; height: auto">
            <ul>
                <li> <strong> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> &nbsp; <?= '#' . $member['info']->id; ?><a href="#"> &nbsp; Edit Profile</a></strong> </li>
                <li> Created on : <?= $member['info']->created_on; ?>  </li>
                <li> Last Login : <?= $member['info']->last_login; ?>  </li>
            </ul>
        </div>

        <div style="width: 200px; float: right; height: auto">
            <ul>
                <li><a href="<?= base_url();?>member/myaccount/change_password"> Change Password </a></li>
                <li><a href="<?= base_url();?>member/car/add"> Add New Car for Sale </a></li>
                <li><a href="<?= base_url();?>member/myaccount/delete/<?= $member['info']->id; ?>" onclick="return confirm('Are you sure you want to Delete Account? \n It will delete all the information of your account. ')"> Delete Account </a></li>
            </ul>
        </div>
    </div>
</div> <!-- End of Box_2 -->




<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left"><h3> Password Change </h3></span>
        <div class="clear"></div>
    </div>

    <div class="clear"> </div>
    <div id="inner">
        <form id="password_change" method="post" action="<?= base_url(); ?>member/myaccount/new_password_submit">
            <div class="rowElem">

                <label>Provide Login Information</label>

                <?php if ($this->session->flashdata('message')) { ?>
                    <div id="message"> <?= $this->session->flashdata('message'); ?></div>
                <?php } ?>
                <div class="clear"></div>  

                <div class="fleft">
                    <label><strong>Old Password:</strong></label>
                    <div id="validation"><?php echo form_error('login_email'); ?></div>
                    <input type="password" name="old_pwd" size="20"> </input>
                </div>
                <div class="fleft marg_left">
                    <label><strong>New Password:</strong></label>
                    <div id="validation"><?php echo form_error('login_password'); ?></div>
                    <input type="password" name="new_pwd" size="20"> </input>
                </div>  

                <div class="clear"></div>        
            </div>
            
            <div class="rowElem">

                <div class="fleft">
                    <label><strong>Retype Password:</strong></label>
                    <div id="validation"><?php echo form_error('login_email'); ?></div>
                    <input type="password" name="retype_pwd" size="20"> </input>
                </div>

                <div class="fleft marg_left">
                    <a onClick="document.getElementById('password_change').submit()" class="inline-block button_search color_1 bold"><span class="inline-block">Change Password</span></a>
                </div>  

                <div class="clear"></div>        
            </div>


        </form>
    </div>



</div> <!-- End of Box_2 -->



